From d7de9aa5e814fd7bab0849af17f3fe3a888203bc Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 28 Jul 2009 16:34:16 +0100 Subject: [PATCH] x86: Initialize the ACPI "safe" power state to C1. Initialize the ACPI "safe" power state to C1. This avoids a null dereference on BIOS tables which define C3 but not C2 or C1. Signed-off-by: Tim Deegan --- xen/arch/x86/acpi/cpu_idle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c index 98d642f975..e6d866fb54 100644 --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -442,6 +442,7 @@ static int init_cx_pminfo(struct acpi_processor_power *acpi_power) acpi_power->states[ACPI_STATE_C1].valid = 1; acpi_power->count = 2; + acpi_power->safe_state = &acpi_power->states[ACPI_STATE_C1]; return 0; } -- 2.30.2